package com.xj.demo.classcommand;

import java.io.File;

public class NewTest {
    public void test1(){
        File file = new File("a.txt");
        Object obj = new Object();
    }

    public void test2(){
        int[] iarr = new int[]{1,2,3};
        String[] sarr = new String[]{"a","b","c"};
        int[][] marr = new int[][]{{1,2,3},{4,5,6}};
        Object[] oarr = new Object[5];
    }

    public void getField(){
        Order order = new Order();
        order.name = "GT 5";
        System.out.println(order.name);
        Order.address = "深圳市南山区";
        System.out.println(Order.address);
    }

    public void setArray(){
        int[] intArr = new int[10];
        intArr[0] = 10;
        System.out.println(intArr[0]);
    }
}

class Order{
    public String name;
    public static String address;

}
